package com.bridgeintelligent.tag.mapper;

import com.bridgeintelligent.tag.bulkload.api.EsDateModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by JackCheung on 2019/10/10 4:02 PM.
 */
@Mapper
public interface EsTimeMapper {

    List<EsDateModel> indexAllTime(@Param("indexId")String indexId);

    /**
     * 通过索引ID和数据日期查询对应的后缀标识
     * @param indexId
     * @param dataDate
     * @return
     */
    List<String> findSymbolByDate(@Param("indexId")String indexId,@Param("dataDate")String dataDate);

    /**
     * 根据indexId和symbol查询esSymbol
     * @param indexId
     * @param symbol
     * @return
     */
    String findEsSymbol(@Param("indexId")String indexId,@Param("symbol")String symbol);
}
